<?php
$db_host = "localhost";
$db_user = "root";
$db_password = "";
$db_database = "liyue";

$db_conn=mysql_connect($db_host,$db_user,$db_password) or die("服务器连接失败");

mysql_select_db($db_database,$db_conn) or die("数据库连接失败");
mysql_query('set names utf8') or die ("UTF-8规范化失败");

date_default_timezone_set('Asia/Shanghai');//亚洲上海时区
?>